package com.wq.hadoop.workspace.reduce;

import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Reducer;

import java.io.IOException;
import java.util.ArrayList;
import java.util.List;

/**
 * @Author: wangqiang20995
 * @Date:2018/11/1
 * @Description:
 * @Resource:
 */
public class SimpleReduce extends Reducer<Text,Text,Text,Text> {

    public void reduce(Text key,Iterable<Text> values,Context context) throws IOException,InterruptedException{
        List<String> list = new ArrayList<>();

        for(Text valueText : values){
            list.add(valueText.toString());
        }
    }
}
